package CreationalPatterns.Builder.builder;

import CreationalPatterns.Builder.product.Car;
import CreationalPatterns.Builder.components.Engine;
import CreationalPatterns.Builder.components.TripComputer;

public interface CarBuilder {
    void reset();

    void setSeats(Integer number);

    void setEngine(Engine engine);

    void setTripComputer(TripComputer engine);

    // 一般的车没有备用轮胎，但越野车默认有
    default Boolean isHasSpareTire() {
        return false;
    }

    public void setSpareTire(Integer number);

    Car build();
}
